home *** CD-ROM | disk | FTP | other *** search
- ; Installation script for NewTool
-
- (transcript "Installing NewTool...")
-
- (copylib
- (prompt "Install WhatIs library.")
- (help @copylib-help)
- (source "LIBS/whatis.library")
- (dest "libs:")
- (confirm)
- )
-
- (copylib
- (prompt "Install ReqTools library.")
- (help @copylib-help)
- (source "LIBS/ReqTools.library")
- (dest "libs:")
- (confirm)
- )
-
- (set name
- (askdir
- (prompt "Install NewTool where?")
- (help @askdir-help)
- (default "C:")
- )
- )
-
- (copyfiles
- (source "NewTool")
- (dest name)
- )
-
- (set prefs
- (askchoice
- (prompt "Install NewTool prefs where?")
- (help @askchoice-help)
- (choices "ENV: and ENVARC:" "S" )
- (default 0)
- )
- )
-
- (if (= prefs 0) ; conditional test
- (
- (copyfiles
- (source "NewTool.prefs")
- (dest "ENV:")
- )
- (copyfiles
- (source "NewTool.prefs")
- (dest "ENVARC:")
- )
- )
- (copyfiles
- (source "NewTool.prefs")
- (dest "S:")
- )
- ) ; end of if
-
- (set what
- (askbool
- (prompt "Copy FileTypes to S:")
- (help "It's up to YOU.")
- (choices "Yes" "No")
- (default 0)
- )
- )
-
- (if (= what 1) ; conditional test
- (copyfiles
- (source "FileTypes")
- (dest "S:")
- )
- )
-
- (set @default-dest name)
-
- (exit)
-
-